
#ifndef __DEV_OFF_H__
#define __DEV_OFF_H__

#include "sys_port.h"

typedef void (*com_pwr_on_cb)(void *event,void *dev);

typedef struct
{
    lv_obj_t* bg_img;
    lv_obj_t* btn_img;
    lv_obj_t* title;
    lv_obj_t* btn;
    void    *dev;
    com_pwr_on_cb pwr_on_cb;
} ui_dev_off_t;

int ui_dev_off_create(lv_obj_t* parent,ui_dev_off_t* dev_off);
int ui_dev_off_destroy(ui_dev_off_t* dev_off);
int ui_dev_off_hide(ui_dev_off_t* dev_off);
int ui_dev_off_show(ui_dev_off_t* dev_off);


#endif
